﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NEH_SA.Model;

namespace NEH_SA.NEH
{
    class NumerCzas
    {
        private int _pi;
        private int _sum;

        public int Pi
        {
            get { return _pi; }
            set { this._pi = value; }

        }

        public int Sum
        {
            get { return _sum; }
            set { this._sum = value; }

        }

        public NumerCzas()
        {
            _pi = 0;
            _sum = 0;
        }

        public static int[] ToArrayPi(NumerCzas[] list)
        {
            int [] table = new int[list.Length];
            for (int i = 0; i < list.Length-1; ++i)
            {
                table[i + 1] = list[i].Pi;
            }
            return table;
        }

        public static int[] ToArraySum(NumerCzas[] list)
        {
            int[] table = new int[list.Length];
            for (int i = 0; i < list.Length - 1; ++i)
            {
                table[i + 1] = list[i].Sum;
            }
            return table;
        }
    }
}
